package pers.twm.mybatis.util;

import com.intellij.execution.filters.Filter;
import com.intellij.execution.filters.HyperlinkInfo;
import com.intellij.execution.process.ProcessHandler;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.actionSystem.AnAction;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * @ClassName MyServiceConsoleView
 * @Description TODO
 * @Author tianwanming
 * @Date 2023/3/19 14:38
 * @Version 1.0
 */
public class MyServiceConsoleView implements ConsoleView {
    @Override
    public void print(@NotNull String s, @NotNull ConsoleViewContentType consoleViewContentType) {

    }

    @Override
    public void clear() {

    }

    @Override
    public void scrollTo(int i) {

    }

    @Override
    public void attachToProcess(@NotNull ProcessHandler processHandler) {

    }

    @Override
    public void setOutputPaused(boolean b) {

    }

    @Override
    public boolean isOutputPaused() {
        return false;
    }

    @Override
    public boolean hasDeferredOutput() {
        return false;
    }

    @Override
    public void performWhenNoDeferredOutput(@NotNull Runnable runnable) {

    }

    @Override
    public void setHelpId(@NotNull String s) {

    }

    @Override
    public void addMessageFilter(@NotNull Filter filter) {

    }

    @Override
    public void printHyperlink(@NotNull String s, @Nullable HyperlinkInfo hyperlinkInfo) {

    }

    @Override
    public int getContentSize() {
        return 0;
    }

    @Override
    public boolean canPause() {
        return false;
    }

    @Override
    @NotNull
    public AnAction [] createConsoleActions() {
        return new AnAction[0];
    }

    @Override
    public void allowHeavyFilters() {

    }

    @Override
    public @NotNull JComponent getComponent() {
        return null;
    }

    @Override
    public JComponent getPreferredFocusableComponent() {
        return null;
    }

    @Override
    public void dispose() {

    }
    // ...
}
